package com.woorigil.social.domain.point;

import java.util.Date;

import com.woorigil.social.BaseObject;
import com.woorigil.social.domain.deal.ManageStatus;

public class DealPoint extends BaseObject  implements Pointable {
	private int id;
	private int dealId;
	private int queryCount;
	private int clickCount;
	private int saleAverage;
	private ManageStatus manageStatus;
	private Date modifyDate;

	public DealPoint() {
		modifyDate = new Date();
	}
	
	public DealPoint(int dealId, int saleAverage, ManageStatus manageStatus) {
		this.dealId = dealId;
		this.saleAverage = saleAverage;
		this.manageStatus = manageStatus;
	}

	@Override
	public int getPoint() {
		return queryCount * clickCount;
	}
	
	public int getDealId() {
		return dealId;
	}
	public void setDealId(int dealId) {
		this.dealId = dealId;
	}
	public int getQueryCount() {
		return queryCount;
	}
	public void setQueryCount(int queryCount) {
		this.queryCount = queryCount;
	}
	public int getClickCount() {
		return clickCount;
	}
	public void setClickCount(int clickCount) {
		this.clickCount = clickCount;
	}

	public int getSaleAverage() {
		return saleAverage;
	}

	public void setSaleAverage(int saleAverage) {
		this.saleAverage = saleAverage;
	}

	public ManageStatus getManageStatus() {
		return manageStatus;
	}

	public void setManageStatus(ManageStatus manageStatus) {
		this.manageStatus = manageStatus;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
}